import Index from "../pages/Index.vue";
import Team from "../pages/TeamPage.vue";
import UserUpdatePage from "../pages/UserUpdatePage.vue";
import Search from "../pages/SearchPage.vue";
import EditUserPage from "../pages/EditUserPage.vue";
//@ts-ignore
import SearchResultPage from "../pages/SearchResultPage.vue";
//@ts-ignore
import UserLoginPage from "../pages/UserLoginPage.vue";
import TeamAddPage from "../pages/TeamAddPage.vue";
import SearchCreateTeams from "../pages/SearchCreateTeamsPage.vue";
import TeamUpdatePage from "../pages/TeamUpdatePage.vue";
import SearchJoinTeamsPage from "../pages/SearchJoinTeamsPage.vue";
import UserPage from "../pages/UserPage.vue";
import UserRegisterPage from "../pages/UserRegisterPage.vue";


const routes = [
    {path: '/',component: Index},
    {path: '/team',title: '找队伍', component: Team},
    {path: '/user/update',title: '更新信息', component: UserUpdatePage},
    {path: '/search',title: '找伙伴', component: Search},
    {path: '/user/list',title: '用户列表', component: SearchResultPage},
    {path: '/user/edit',title: '编辑信息', component: EditUserPage},
    {path: '/user/login',title: '登录', component: UserLoginPage},
    {path: '/user/register',title: '注册', component: UserRegisterPage},
    {path: '/team/add',title: '创建队伍', component: TeamAddPage},
    {path: '/team/search',title: '已经创建队伍', component: SearchCreateTeams},
    {path: '/team/update',title: '更新队伍', component: TeamUpdatePage},
    {path: '/team/join',title: '已加入队伍', component: SearchJoinTeamsPage},
    {path: '/my/page',title: '个人信息', component: UserPage},
]

export default routes;